package com.jessechanrui.template.common.template.auth.application.dto.req;

import com.jessechanrui.template.core.dto.DTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author chenrui
 * @version 1.0
 * @description UserUpdateRequest
 * @date 2025/5/14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
public class UserUpdateRequest extends DTO {

    @NotNull(message = "用户ID不能空")
    @Schema(description = "用户ID")
    private Integer id;

    /**
     *gerrit用户名
     */
    @Schema(description = "gerrit用户名")
    private String gerritUserName;

    /**
     *gerrit密码
     */
    @Schema(description = "gerrit密码")
    private String gerritPassword;

    /**
     *Gerrit密码类型是否为http证书密码
     */
    @Schema(description = "Gerrit密码类型是否为http证书密码，默认为true")
    private Boolean gerritHttpPassword;
}
